package com.design.observer;

/**
 * @author wangbingwu
 *
 */
public class PlusOperation implements Expression {
	private Expression e1;
	private Expression e2;

	public PlusOperation(Expression e1, Expression e2) {
		this.e1 = e1;
		this.e2 = e2;
	}

	@Override
	public int interpreter(Context context) {
		return e1.interpreter(context) + e2.interpreter(context);
	}

}
